Repository navigation
Deprecate redundant Codex APIs and use agent methods in the v1 guides - #6386
marcuswood-oai wants to merge 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
jbeckwith-oai
left a comment
There was a problem hiding this comment.
No actionable findings. Reviewed the complete deprecation/docs change, advisory decorator behavior and dependency compatibility, Agent/Runner delegation, streaming examples, existing-key resume, generated session IDs, and cancellation checkpoint semantics. Independent static review agreed.
No candidate code or tests were executed. Hosted CI has no failures observed; checks remain in progress.
jbeckwith-oai
left a comment
There was a problem hiding this comment.
No actionable findings in the documentation follow-up. Verified the latest v1 release uses the openai_agents namespace, the v0 decorator alias exists, and links to removed migration sections were updated. Runtime deprecation behavior is unchanged.
Independent static review agreed. Hosted CI remains in progress; no candidate code or tests were executed locally.
seratch
left a comment
There was a problem hiding this comment.
I like this idea. Other major SDKs expose a run method on the agent instance, and I don't see any technical issues with doing the same as long as the method supports all existing RunConfig options. We can safely deprecate Runner.run and give users enough time to migrate before removing it, say, in v2.
Summary
This pull request updates the v1 README and quickstart to run the first turn with
await agent.run(prompt). The quickstart then shows how to stream the tutor's answer withagent.stream(prompt)and ask a follow-up withagent.session().The migration guide shows the same tutor in v0 and v1. The Codex
RunnerandAgent.nameare deprecated. When porting the tutor, setmodelon the agent, call itsrun()method, and readresult.output_text. For Python tools, replace the v0@tooldecorator with@function_toolfromopenai_agents.codex.Each deprecated Codex API has a short replacement note at its definition. Editors can show the suggested call when a developer uses the Codex
Runneror another deprecated class or method.Test plan
Checks
.agents/skills/code-change-verification/scripts/run.shon Linux. Formatting, lint, type checks, and all 315 Codex tests passed.